<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // var set=new Set([1,'hello',true,null])
        // console.log(set);
        // console.log(Array.from(set));

        // var arr=[1,2,3,3,2,1]
        // var set=new Set(arr);
        // console.log(set);

        // var map=new Map([['name','张三'],['age',21],['say',function(){}]])
        // console.log(map);
        // console.log(Array.from(map));

        let obj = {
            name:'tom',
            age:5,
            gender:'male'
        }
        obj[Symbol.iterator]=Array.prototype[Symbol.iterator]
        var map=new Map(obj);
        console.log(map);
    </script>
</head>
<body>
    
</body>
</html>